/**
 * 2023/01/01 - 2023/12/31
 **/
package com.snail.server.channel.service;

import com.snail.server.channel.dto.PaymentDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author: (zg)
 * @Date: 2023/10/26 18:37
 * @Version: 1.0.0
 */
public abstract class AbstractChannel implements IChannel {

    abstract void payParams();

    abstract void callBackParams();

    @Override
    public void pay(PaymentDTO paymentDTO) {
        //创建
        //获取配置
        //拼接参数
        //更新状态
    }


    @Override
    public void callback(HttpServletRequest httpServletRequest, HttpServletResponse servletResponse) {
        //获取参数
        //验证订单
        //更新状态
        //响应结果
    }
}